Extend arrays to allow max ID value

The array was defined up to but not including the key value, it needs to include the max value to avoid out of bounds exceptions