Fix the mission_read_waypoint_list function