fixes a bug in account_balances_observer