Fixed an endless loop of geolocations