bug fixes for firefox