Fixing firefox bugs