Fixed an error with Firefox.