Fix for Firefox compatability