Fixed bug about balance retrieving.
Fixed bug - when the transaction is rolled back, the status wasn't updated.