Oops, second off-by-one error calculating default stopIndex.