fix in url function