Fixed a bug where GPS was not stored correctly