bug fix for friend search