url generating fix