Fix LOGICAL_GREATER and LOGICAL_LESS (was inverted...)