fixing bug in firefox