Fixed bug with url construction.