Better root flipY logic.