A contract allows for prevailing party to receive attorney's fees. Part of the reason said party's (the prevailing party) attorney fees are so high is because their attorney made a lot of mistakes (i.e. opposing party's demurrer's, motions to strike, etc., granted because of prevailing party's attorney's mistakes). QUESTION: Does the prevailing party have a right to collect for all their attorney fees even where such fees would have been lower except for the prevailing party's attorney's mistakes? In other words, should the losing party be responsible for the opposing party's attorney mistakes in the form of paying for their attorney fees arising from said mistakes?