Fixed bug with Firefox