Fix cosmectic bug on firefox