Bug fixes for firefox.