fix checkConsistency