Fix possible IndexArrayOutOfBounds exception.