Fix crash bug with waypoint dragger