delivered the opinion of the court:
Plaintiff, Roger R. Kasny, appeals the dismissal of his legal malpractice claim against defendant, Coonen & Roth, Ltd., n/k/a Roth, Melei, Santeler, Ltd. Plaintiff contends that a small claims judgment for outstanding attorney fees entered in defendant’s favor does not bar his legal malpractice case. We reverse and remand.
In 2002, plaintiff retained defendant to represent him in the dissolution of his marriage. Plaintiff signed an engagement agreement with defendant, whereby plaintiff agreed to pay defendant reasonable fees for necessary work done and to work toward reconciliation. Plaintiff and his ex-wife eventually executed a marital settlement agreement, and plaintiff failed to pay defendant for its services. Defendant sued plaintiff in small claims court for outstanding legal fees totaling $4,955.15. Plaintiff never appeared in small claims court to defend against the breach of contract action. A judgment for the unpaid legal fees plus costs was entered in defendant’s favor on April 13, 2006.
In 2007, plaintiff sued defendant for breach of contract and legal malpractice. Although the trial court dismissed plaintiffs breach of contract claim with prejudice, it dismissed plaintiffs legal malpractice claim without prejudice, and plaintiff filed an amended complaint. In plaintiffs amended complaint, in which he claimed at least $200,000 in damages, he alleged that defendant: failed to appraise various marital assets and relied on the inaccurate appraisals that plaintiffs ex-wife prepared; did not discover plaintiffs ex-wife’s nonmarital assets and understand the impact that her nonmarital real property could have on a fair division of the marital property; neglected to promptly and properly answer discovery; allowed the dissolution case to continue for more than three years with little or no work done toward resolving the matter; violated discovery rules, for example by failing to disclose expert witnesses who could testify about the value of various marital assets, which violations resulted in plaintiffs inability to proceed with a trial; failed to advise plaintiff that he could not proceed with a trial because of the discovery violations; and induced plaintiff to settle the case by telling plaintiff that appraisals were too expensive, that his own appraisals would not alter the valuation of the property, and that he had no choice but to agree to a settlement. Plaintiff asserted that he was unaware of a cause of action for legal malpractice against defendant until sometime in June 2006, two months after the small claims case was resolved, when the malpractice attorney he contacted had adequately investigated plaintiffs case.
Defendant moved to dismiss plaintiffs amended complaint, arguing that the judgment for unpaid legal fees entered in the small claims case barred plaintiff from bringing a cause of action for legal malpractice. Defendant asserted that plaintiffs lack of knowledge of a legal malpractice claim was no defense, as he could have discovered a cause of action for legal malpractice had he exercised due diligence. The trial court granted defendant’s motion to dismiss, finding that professional negligence is a defense to a claim for outstanding attorney fees and that, thus, plaintiff should have raised the issue of legal malpractice in the small claims case. This timely appeal followed.
At issue in this case is whether defendant’s motion to dismiss plaintiffs complaint for legal malpractice was properly granted. More specifically, we consider whether the judgment for outstanding attorney fees entered in the small claims case has res judicata effect in plaintiffs action for legal malpractice.
A motion to dismiss pursuant to section 2 — 619 of the Code of Civil Procedure (735 ILCS 5/2 — 619 (West 2006)) admits all well-pleaded facts, the reasonable inferences to be drawn from those facts, and the legal sufficiency of the complaint; but it asserts affirmative matter to avoid or defeat the claim. Floyd v. Rockford Park District,
One defense that a defendant may raise in a section 2 — 619 motion is that a prior judgment bars the plaintiff’s cause of action, i.e., that the prior judgment has res judicata effect in the subsequent lawsuit. 735 ILCS 5/2 — 619(a)(4) (West 2006). “The doctrine of res judicata provides that a final judgment on the merits rendered by a court of competent jurisdiction is conclusive as to the rights of the parties and their privies, and as to them constitutes an absolute bar to a subsequent action involving the same claim, demand, or cause of action.” City of Rockford v. Unit Six of the Policemen’s Benevolent & Protective Ass’n,
The parties agree that the judgment for outstanding fees represents a final judgment on the merits rendered by a court of competent jurisdiction and that there is an identity of parties in both cases. However, they disagree about whether there is an identity of causes of action between the malpractice cause and the small claims cause.
In considering whether there is an identity of causes of action in this case and the small claims case, we note that, “in Illinois, counterclaims are generally permissive rather than mandatory.” Corcoran-Hakala v. Dowd,
Illinois cases are split on the issue of whether an attorney’s claim for fees and a client’s claim for malpractice are a single cause of action. In Bennett v. Gordon,
This is not to say, however, that res judicata necessarily applies. As noted, the doctrine bars only those claims that could have been raised. Indeed, res judicata extends only to claims that “ ‘could have been presented by the exercise of due diligence.’ ” (Emphasis added.) Hughey v. Industrial Comm’n,
Here, plaintiff alleged that he “did not learn of the existence of a cause of action for legal malpractice and consequently could not file such action until at the earliest *** well after Defendants [sic] had sued [plaintiff] and successfully obtained a default judgment for fees.” He further alleged that he did not, and could not, discover his malpractice claim “until after consulting with an attorney experienced in legal malpractice matters and *** until that attorney had adequate time to investigate and opine on the existence of a legal malpractice matter after sufficient due diligence so as not to run afoul of [Supreme Court] Rule 137, in the proper investigation of facts and law prior to opining and the preparation of a suitable complaint.” That is, plaintiff alleged that, through the exercise of due diligence, he could not have raised his malpractice claim as a counterclaim in defendant’s small claims case. Taking these allegations as true and reading them liberally, as we must at this stage, we hold that defendant has failed to establish the applicability of res judicata.
The cases on which defendant relies are easily distinguishable. In Singer v. Steven Kokes, Inc.,
Defendant asserts that due diligence “would have required [plaintiff] to at least appear at the [small claims] hearing to contest his liability. Had he appeared and responded to the fee litigation, [plaintiff] could have learned of the purported legal malpractice and should have raised the claim at that time.” Defendant notes also that plaintiff could have sought to take discovery to realize his claim. See 145 Ill. 2d R. 287(a) (no discovery in small claims except by leave of court). “Instead, [plaintiff] simply ignored the fee litigation.”
Defendant here raises only a question of fact. In light of plaintiffs allegations, we cannot necessarily attribute his default in the small claims case to a lack of diligence in exploring his defenses. Small claims proceedings are designed to be expedient (Tannenbaum v. Fleming,
A section 2 — 619 motion may not be granted when the asserted defense requires the resolution of a material fact before it is proven. Reilly v. Wyeth,
The judgment of the circuit court of McHenry County is reversed, and this cause is remanded for further proceedings.
Reversed and remanded.
BURKE and HUDSON, JJ., concur.
Notes
Indeed, some authority suggests that res judicata is inapplicable precisely because plaintiff did not appear in the small claims case. See Restatement (Second) of Judgments §22, Comment a, at 186 (1982) (“Even in jurisdictions having a statute or rule making certain counterclaims compulsory, such provisions may not apply when no answer or other responsive pleading is filed”); Restatement (Second) of Judgments §22, Illustration 2, at 186 (1982) (“A, a physician, brings an action against B for the price of medical services rendered to B. B fails to plead and judgment by default is given against him. B is not precluded from subsequently maintaining an action against A for malpractice relating to the services sued upon in the prior action”). Plaintiff does not make this argument, however, and thus we do not address it.
