fixing bug on firefox