fix the bug that  i  is incorrect after remove a  object