Fixed the add friend function.