fix a delete bug in IE