Fix an incorrectly inverted condition.