Fix inverted conditional

Oops, I should had run the tests