[ci skip] Fix off-by-one