fix a little bug in my searchFriend