fix off-by-one error in ptop reindexer
Merge pull request #980 from dimagi/ptop-reindex-fixes

fix off-by-one error in ptop reindexer