Fix transaction history totals