fix for crash in IE8