Fixes bug where pagination would be off by one post.