Fix bug with Firefox