Fix typo and invert test condition