fix searchFriend's errors