fixed geolocation bug