Fixed inconsistency detection and repair