Civil Code § 1640
TITLE 3. INTERPRETATION OF CONTRACTS
When, through fraud, mistake, or accident, a written contract fails to express the real intention of the parties, such intention is to be regarded, and the erroneous parts of the writing disregarded.