repaire a bug of index