Fix bug

Accidentally was incrementing the limit as well as the offset.  It works
now, albeit slowly