Make sure you're not overheating the chocolate. Stir frequently so it melts evenly. If you're still having trouble, try melting a good quality chocolate bar - they will usually melt very smoothly.