fixing friend search validity