Fix index manager bug: delete error