diff --git a/config/schema/easy_breadcrumb.schema.yml b/config/schema/easy_breadcrumb.schema.yml
index a195620..ea8a27a 100644
--- a/config/schema/easy_breadcrumb.schema.yml
+++ b/config/schema/easy_breadcrumb.schema.yml
@@ -19,7 +19,7 @@ easy_breadcrumb.settings:
       label: 'Title for the front page segment in the breadcrumb'
       translatable: true
     home_segment_keep:
-      type: integer
+      type: boolean
       label: 'Display the front page segment on the front page'
     include_title_segment:
       type: boolean
diff --git a/easy_breadcrumb.install b/easy_breadcrumb.install
index 8ca3ad4..6e84837 100644
--- a/easy_breadcrumb.install
+++ b/easy_breadcrumb.install
@@ -5,10 +5,32 @@
  * Update hooks.
  */
 
+use Drupal\easy_breadcrumb\EasyBreadcrumbConstants;
+
 /**
  * Force an update because we removed an unused service.
  */
 function easy_breadcrumb_update_8001(&$sandbox) {
 
   // Do nothing because database updates run cache rebuild.
-}
\ No newline at end of file
+}
+
+/**
+ * Update home_segment_keep config from integer to boolean.
+ */
+function easy_breadcrumb_update_8002() {
+  // Load the editable config.
+  $config = \Drupal::configFactory()->getEditable('easy_breadcrumb.settings');
+  // Get the home_segment_keep setting.
+  $home_segment_keep = $config->get(EasyBreadcrumbConstants::HOME_SEGMENT_KEEP);
+  // If the setting is enabled, store it as TRUE.
+  if ($home_segment_keep === 1) {
+    $config->set(EasyBreadcrumbConstants::HOME_SEGMENT_KEEP, TRUE);
+  }
+  // Otherwise, store it as FALSE.
+  else {
+    $config->set(EasyBreadcrumbConstants::HOME_SEGMENT_KEEP, FALSE);
+  }
+  // Save the config.
+  $config->save();
+}
