Fix friend search bug