Ensure filters apply to page totals (TODO: Clean up code here