fix frontierFlipped for REVERSE searches