Fixed bugs in Firefox.