fix the handling tab id on Firefox