Fixes geolocation detection