Fix for Firefox 32 and below