Fixed bug where only first transaction will get its balance updated.