Added a fix for Firefox 24