bug fixing for get friends api