Fixing bug with firefox