diff --git a/head2head.module b/head2head.module
index c6405ba..92a32a1 100644
--- a/head2head.module
+++ b/head2head.module
@@ -371,11 +371,13 @@ function head2head_2212069() {
  * Updates views to use Field API handlers instead of custom ones.
  */
 function head2head_2393339() {
-  $views = \Drupal\views\Entity\View::loadMultiple();
-  foreach ($views as $view) {
+  $names = \Drupal::configFactory()->listAll('views.view.');
+  foreach ($names as $name) {
+
+    $view = \Drupal::configFactory()->getEditable($name);
     // Iterate over all displays and update the table name.
-    foreach (array_keys($view->get('display')) as $display_id) {
-      $display = &$view->getDisplay($display_id);
+    $displays = $view->get('display');
+    foreach ($displays as $display_id => &$display) {
       foreach (\Drupal\views\Views::getHandlerTypes() as $handler_type) {
         $handler_type = $handler_type['plural'];
         if (!isset($display['display_options'][$handler_type])) {
@@ -459,7 +461,8 @@ function head2head_2393339() {
       }
     }
 
-    $view->save();
+    $view->set('display', $displays);
+    $view->save(TRUE);
   }
 }
 
