fix waypoint crash