Fix to post pagination