fixed error in getUrl