Fix inverted condition.