Fix BEFORE_EQ macro