fix display bug on firefox