fixed a bug in index_multi