Bad number of dimensions (22)

You try to access an array by specifying a number of indexes different from the number of dimensions of the array.