fix url generating