fixed an incompatibility with Firefox