diff --git a/src/Model/Behavior/DuplicatableBehavior.php b/src/Model/Behavior/DuplicatableBehavior.php
index <HASH>..<HASH> 100644
--- a/src/Model/Behavior/DuplicatableBehavior.php
+++ b/src/Model/Behavior/DuplicatableBehavior.php
@@ -292,7 +292,7 @@ class DuplicatableBehavior extends Behavior
                 break;
 
             case 'set':
-                if (is_callable($value) && !is_string($value)) {
+                if (!is_string($value) && is_callable($value)) {
                     $value = $value($entity);
                 }
                 $entity->set($prop, $value);
Check for a string first to pass the condition quicker