Fix function for getting user friends