Fixed some Firefox bugs.