Fixed the issue where the geolocation button won't stop spinning