fix geolocation bugs