Fix off-by-one-in start calculation