Fixed GPS error, except when running in emulator.