fixes for Firefox