Fix bug in Firefox.