fix a bug on firefox