Updated 4815 case to index array correctly for middle terminals.