Fix off by one pagination