Fix obvious subscript-out-of-range error.