fix UrlWrite