#2764 fixed index deletion