Improve code because is not needed call fixConsistency twice