Fixes for firefox.