fixing rendering for firefox