Fix small bug in geolocation