fixed tab id mismatch js error