fix an issue on firefox

fix an issue on firefox