typo fix in array index