Fixed url creation bug.