Fix for Firefox 32, seems to cause no problems elsewhere