If the chocolate icing starts to take on a grainy or curdled appearance, it's possible that it got too warm and the fat has separated out of the chocolate. To fix this, add 2 tablespoons of warmed cream to the ganache while whisking it vigorously until it smooths out. Add more cream if it still hasn't come together.