Fix bug in #get_balance