fix the geolocation API