fix bug in table friends