fix issue with geolocation