Fix bug of done index.