fixes for Firefox 34