Fix off by ones.