diff --git a/includes/charts.pages.inc b/includes/charts.pages.inc
index 737e4397a12a14635ce720ae1e244665ee84fcde..5fef5bb75ee50170680731edb7212a01e67c6479 100644
--- a/includes/charts.pages.inc
+++ b/includes/charts.pages.inc
@@ -218,7 +218,7 @@ function charts_cast_element_integer_values(&$element) {
 function charts_settings_form($form, $defaults = array(), $field_options = array(), $parents = array()) {
   // Ensure all defaults are set.
   $options = array_merge(charts_default_settings(), $defaults);
-  $form['#attached']['library'][] = array('charts', 'charts.admin');
+  $form['#attached']['library'][] = "charts/charts.admin";
 
   // Get a list of available chart libraries.
   $charts_info = charts_info();
diff --git a/src/Plugin/views/style/ChartsPluginStyleChart.php b/src/Plugin/views/style/ChartsPluginStyleChart.php
index 2f40b71121deb51b694a8181e937d69772e284cc..38831eb25b6a95c540fd6869627ebad6446b6c8d 100644
--- a/src/Plugin/views/style/ChartsPluginStyleChart.php
+++ b/src/Plugin/views/style/ChartsPluginStyleChart.php
@@ -6,7 +6,6 @@ use Drupal\core\form\FormStateInterface;
 use Drupal\Core\Render\Element;
 use Drupal\views\Plugin\views\style\StylePluginBase;
 
-\Drupal::moduleHandler()->loadInclude('charts', 'inc', 'charts.theme');
 \Drupal::moduleHandler()->loadInclude('charts', 'inc', 'includes/charts.pages');
 
 /**