Fixes a check that seemed to be incorrect.