This will sometimes happen if your cream cheese and butter were not at room temperature before making. To fix this, simply microwave your glaze for about 8 seconds. That will melt any lumps and make a smooth glaze.