Fix a bug in find_accounts, it did not always find all accounts