fixed friendships bug