Bugfix for "unknown runtime error" in IE 7/8