Fixed url generation bug.