Bugfix in get_account_summary function