Fix typo in array access