small fix in index vector