fix bug in geolocation