fix endless loop in gpx export