fixed error when there are no friends !!