fix index inconsistence in v1 api

This fix https://github.com/coreos/etcd/issues/388