delivered the opinion of the court:
Plaintiff, Altair Corporation (Altair), filed a two-count complaint alleging breach of contract in connection with the sale of real estate located in Waukegan. Count I of Altair’s complaint sought damages in excess of $50,000 from defendants Grand Premier Trust and Investment, Inc.; Mark Jackson; Thomas Rosenquist; and Luther G. Otter-son (collectively, Grand Premier). Count II of the complaint sought the return of $25,000 in earnest money held by Tri-State Realty (TriState). Grand Premier filed a complaint to recover the earnest money, which was consolidated with Altair’s complaint. The circuit court of Lake County dismissed Altair’s complaint pursuant to section 2 — 619 of the Code of Civil Procedure. 735 ILCS 5/2 — 619 (West 1998). The trial court found that plaintiffs claim was barred by the doctrines of res judicata and election of remedies. Plaintiff now appeals. Grand Premier has submitted a motion to strike portions of plaintiffs brief, which we have taken with the case. We affirm.
BACKGROUND
On July 29, 1997, Altair, the buyer, and Grand Premier, the seller, entered into a contract for the sale of two parcels of real property located in the City of Waukegan. The contract contained the following provision:
“Seller will obtain a letter from the City of Waukegan through the date of the closing stating that construction of a new building on Lot PIN: 07-01-301-033 located directly behind the 4050 Joseph Drive building will not require a retention or detention area to be built. Seller agrees that in the event that a retention or detention area has to be built, then Seller agrees to pay to the Purchaser the amount of said cost and expense. Seller will pay said cost and expense within ten (10) days of receiving the invoice and/or estimate from the Purchaser.”
The contract also provided as follows:
“The property will be vacant and the property and surroundings will be cleaned up and ready for occupancy. In the event the building is not vacant, the purchase price will be reduced at the rate of $20,000 per month, pro-rated only for the first month and in full for each succeeding month or any fraction thereof. The closing to be deferred at the option of Purchaser until the building is legally vacant. In the event the property and surroundings are not cleaned up, the cost of clean up will be deducted from the purchase price.”
The contract was to close within 60 days; however, the parties agreed to close on September 29, 1997.
On September 20, 1997, Altair sent Grand Premier a letter requesting that Grand Premier place $665,674.89 in an escrow account to fund the construction of a retention pond. The actual cost of building the retention pond was $545,674.89, and $120,000 represented a diminution in the value of the property caused by the construction of the pond. In its letter, Altair asserted that it was clear by that time that Grand Premier would not be able to produce a letter from the City of Waukegan stating that such a pond would not be necessary. Grand Premier responded on September 25, 1997. Grand Premier questioned the estimated cost of the retention pond and the size of the pond Altair was proposing to build. Grand Premier requested that Altair provide it with the construction plans upon which the estimated cost was based. Grand Premier also stated that there was no basis in the contract for Altair’s request for compensation for diminution in the value of the property.
On September 29, 1997, the agreed closing date, the parties did not close the transaction. Grand Premier did not provide the requested letter from the City of Waukegan. Altair also alleges that debris remained on the property in violation of the contract.
On September 26, 1997, Altair filed its first complaint in this matter. Altair alleged that defendants had anticipatorily breached the contract. Altair contended that defendant’s letter of September 25, 1997, constituted a refusal to pay the construction costs of the retention pond. On November 20, 1997, Judge Emilio Santi dismissed Altair’s first complaint. Altair appealed the dismissal of this complaint, and this court affirmed on November 4, 1998.
On November 25, 1998, Altair filed the instant complaint. In the present action, Altair alleges that defendants breached the contract by failing to provide a letter at the closing from the City of Waukegan stating that no retention pond was necessary. Altair further alleged that various debris remained on the property in violation of the contract. On May 11, 1999, Judge Jack Hoogasian dismissed Altair’s second complaint, finding it barred by the doctrines of res judicata and election of remedies.
ANALYSIS
The defense of res judicata is properly asserted through a section 2 — 619 motion to dismiss. 735 ILCS 5/2 — 619(a)(4) (West 1998). All well-pleaded facts are taken as true and viewed in the light most favorable to the nonmoving party. Saxon Mortgage, Inc. v. United Financial Mortgage Corp.,
Res judicata precludes subsequent litigation between parties on the same claim after a court of competent jurisdiction renders final judgment on a matter. Torcasso v. Standard Outdoor Sales, Inc.,
Our supreme court recently adopted the more liberal transactional test over the same evidence test for assessing whether an identity of cause of action exists. River Park, Inc. v. City of Highland Park,
Applying the factors set forth in River Park, Inc.,
•4 Altair argues that, even if both" complaints present the same cause of action, an exception exists that precludes the application of res judicata to the present case. Altair points out that “a prior judgment for the defendant on the ground of the nonexistence of some fact essential to the plaintiff’s cause of action! ] does not preclude the plaintiff from maintaining an action after such fact subsequently comes into existence.” Pratt v. Baker,
•5 While this rule may appear harsh, particularly if the subsequent events occur shortly before a trial court renders final judgment, another exception to the res judicata doctrine mitigates this apparent harshness. Res judicata will not be applied where it would be fundamentally unfair to do so. Weisman v. Schiller, Ducanto & Fleck,
We find no reason not to apply res judicata in the present case. Altair was aware of the conduct that formed the basis of its second complaint a mere four days after it filed its first complaint. This case does not involve a situation where the plaintiff learned of additional conduct shortly before final judgment and did not have time to act. Furthermore, Altair did not attempt to supplement its pleadings after the closing did not take place. See 735 ILCS 5/2 — 609 (West 1998). The only time Altair appears to attempt to raise the conduct occurring on the closing date in the earlier proceeding is on the date the trial court dismissed its first complaint. During that hearing, Altair’s counsel merely asked whether the complaint was dismissed with prejudice or could be amended. We recognize that joinder is permissive; however, this does not make res judicata inapplicable. See Block & Co. v. Storm Printing Co.,
Altair also argues that the trial court erred in dismissing the second count of its complaint, which pertains to Tri-State. Altair gave $25,000 to Tri-State to hold as earnest money. Tri-State was not named as a party in Altair’s first complaint. Thus, according to Altair, there is no “identity of parties.” For res judicata to apply, there must be “an identity of parties or their privies.” Downing,
Because we find that the trial court correctly determined that res judicata bars Altair’s current action, we need not address whether the claim is similarly barred by the doctrine of election of remedies. Grand Premier’s motion to strike portions of Altair’s brief is rendered moot.
The decision of the circuit court of Lake County is affirmed.
Affirmed.
HUTCHINSON and RAPP JJ., concur.
