diff --git a/custom_pub.module b/custom_pub.module
index 764acbf..8e01daa 100644
--- a/custom_pub.module
+++ b/custom_pub.module
@@ -186,8 +186,12 @@ function custom_pub_entity_presave(EntityInterface $entity) {
     $custom_pub_entity = \Drupal::entityTypeManager()->getStorage('custom_publishing_option')->load($entity->getName());
     if ($custom_pub_entity) {
       $dependencies = $entity->get('dependencies');
-      $dependencies['config'][] = $custom_pub_entity->getConfigDependencyName();
-      $entity->set('dependencies', $dependencies);
+      // We need to validate if dependency is already added.
+      $dependency_name = $custom_pub_entity->getConfigDependencyName();
+      if (!in_array($dependency_name, $dependencies['config'])) {
+        $dependencies['config'][] = $dependency_name;
+        $entity->set('dependencies', $dependencies);
+      }
     }
   }
 }
