fix Location Unavailable bug