Fixed another indexing error