getbalance bug fix