fixed the createUrl method usage.