fixed the issue that was crashing firefox and ie