fixed bug while requesting a location