fixed waiting for friend issue