fix totals