Fixed a lot of Firefox issues.