fix the bug that remove does not work in IE