Correct index error.