This can happen when using a more natural peanut butter (one that separates while sitting in the jar). I recommend using a creamy no stir peanut butter like Jif for this cream cheese frosting.