Fix display bugs in Firefox.

Resolves #149