Array indexing fix

Was still using single direcitonal array numbering