fix totals and some grand total