fix bug of indices miss