bug fix: segfault in reading GPX.