Fixed bug reported by mugen and endlesscustoms which was causing account balances to be reported incorrectly or not at all.