Fix transaction's amount computation