Fixed wrong calculation of InverseConsistency