Equality check was inverted