fix bug for firfox