some fixes for firefox