fixed the geolocation loading and map renderw