Make sure the contract reflects the client’s expectations.
If you find differences early in the project you should tell the client.
If you find them late in the project, you haven’t done your job properly in clarifying their expectations, or their expectations have changed.