Correct invariant check for PSCAD.