Fix failing tests in Safari > 5.