Fix contracts.