fixed minor mistage of updating location