When saving the .gpx tracks of a directory the default filename is the name of the directory, which does not end with suffix .gpx.