url generation fix