fix adding a friend twice bug