Fix integrity check.