Fixed bug on getting location by url