This is likely due to moisture getting into the chocolate. According to Cooks Illustrated, add 1 teaspoon of boiling water at a time, stirring vigorously until smooth. Alternatively, add a teaspoon of vegetable oil to try to smooth it out.