Fix pagination when filtering expenses by category