correct the bug in select friends