fix UrlGenerator