Correct the check to what was intended