fix bug on firefox