fix wrong totals