Fix createUrl() creating URL

This is to fix issue #1