fix bug for orphaned elems in IE9