Fixed a bug that in index removal