Maybe the chocolate was not tempered or melted properly. No need to worry, just leave it in the fridge for a couple of hours and it will harden.