Fixed small bug in url() function