Fixed bug with nill previous gps