Fixes some Firefox issues.