fixed geolocation error bug