fix the bug in friends tab