Waypoint reduction bugfix