Added a fix for Firefox.