Fixes page_total_items on pagination metadata