Geolocation bug fix