Fixes for Firefox.