fixes refresh_balances issue