fix a bug with adding friends