fixed bug where friend is not added to the list