When a writing fails to express the agreement because of a mistake of both parties, the court may, at a party’s request, reform the writing to express the agreement, except to the extent that rights of third parties who have relied on the document, such as good-faith purchasers for value, will be unfairly affected.[v]