fixed a bug when adding a new friend