fixed geolocation detection