Fixed waypoint save bug causing internal server error