You can whisk in some cornstarch, however, most likely you need to let the melted chocolate cool a bit. For more troubleshooting, read my tips for melting chocolate.