Fixing geolocation check