Fix createUrl() creating URL