Minor bugs after testing with poor GPX files