fix pagination going to 404 if new post creates a new page