fixed a bug about interator indexing