Fixed bug with geolocation