fixes for firefox.