Firefox 33.1 bug fix

fix for issue #299