Most likely, you added the buttermilk (an acidic ingredient) at the same time as the other ingredients. To avoid this, add the dry ingredients (flour, sugar, salt) to the eggs first and then add the buttermilk. This is how the recipe is written, so as long as you follow it, you will bake the best buttermilk pie.