# Off by one error in latest.json page 1

**URL:** <https://meta.discourse.org/t/off-by-one-error-in-latest-json-page-1/58622>\
**Category:** Bug\
**Created:** [March 8, 2017, 9:46am UTC](https://meta.discourse.org/t/off-by-one-error-in-latest-json-page-1/58622 "2017-03-08T09:46:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [March 20, 2017, 4:28pm UTC](https://meta.discourse.org/t/off-by-one-error-in-latest-json-page-1/58622/7 "2017-03-20T16:28:35Z")

</div>

I looked into this and it really is the second snippet of code the one that causes the issue. I made the changes (removed the `- 1`), did some testing and everything works as expected. I will be testing more.

---

_[View the full topic](https://meta.discourse.org/t/off-by-one-error-in-latest-json-page-1/58622)._
