Correct a bug in when addind friend