Fix bug on report totals with a filter