Fixed disposal issue with IE8.