friends api bug fix