fixing totals