Fix crash when moving waypoints around.