Fix url generation.