fixed bug on firefox.