fix url generation error message