fixed issue #14 (gps bug)