Fixed a bug related to Firefox