Fix compatibility with Firefox 20.