Fixed a bug in 'search': if there were two account name that matches the search criteria, only one was returned.