Fix an off by one in array indx