fix error causing hangups in IE