bug fix on transactionStats reduce