fix index inconsistence in v1 api
Merge pull request #390 from xiangli-cmu/fix_v1_index_inconsistence

fix index inconsistence in v1 api