Fix issue #19 gpx reference was lost when renaming a record