Bug fixes in reports and totals.