Fix reading an element after the array.