work around firefox problems.