fix control toggles on firefox