- Fix crash due to inconsistency when exporting to GPX file.
- Fix crash when collecting on some Xiaomi phones.