Logic was inverted