fix friend - node relation logic