setname now also corrects the url for internal objects