Fix LOGICAL_(NOT_)EQUAL