fixed bug in add_friend