Fixed an issue in the url generator