It takes time for dogs to learn how to interact properly with others. Be patient and consistent with your socialization efforts.