bug of generating url fixed