Correct array index