Fix url generation error message