Set correct num of pages when total_posts exactly equals to per_page, also fix the active page in paginator_navigation