Fixing Firefox-specific bugs.