Fixed a few layout bugs on firefox.