Fix off by N error.