fixed the bugs about tempFriend in NearbyActivity