Fixed a bug in Firefox.