diff --git a/src/Entity/Form/ReplicationForm.php b/src/Entity/Form/ReplicationForm.php
index 0aeb34e..27f49a4 100644
--- a/src/Entity/Form/ReplicationForm.php
+++ b/src/Entity/Form/ReplicationForm.php
@@ -99,7 +99,7 @@ class ReplicationForm extends ContentEntityForm {
         $this->entity->get('target')->entity
       );
 
-      if (($response instanceof ReplicationLogInterface) && $response->get('ok')) {
+      if (($response instanceof ReplicationLogInterface) && ($response->get('ok')->value === TRUE)) {
         $this->entity->set('replicated', REQUEST_TIME)->save();
         drupal_set_message('Successful deployment.');
       }
diff --git a/src/Form/ReplicationActionForm.php b/src/Form/ReplicationActionForm.php
index 88de8f9..d8ef41e 100644
--- a/src/Form/ReplicationActionForm.php
+++ b/src/Form/ReplicationActionForm.php
@@ -46,7 +46,7 @@ class ReplicationActionForm extends FormBase {
         $entity->get('source')->entity,
         $entity->get('target')->entity
       );
-    if (($response instanceof ReplicationLogInterface) && $response->get('ok')) {
+    if (($response instanceof ReplicationLogInterface) && ($response->get('ok') === TRUE)) {
       $entity->set('replicated', REQUEST_TIME)->save();
       drupal_set_message('Successful deployment.');
     }
@@ -65,4 +65,4 @@ class ReplicationActionForm extends FormBase {
     throw new EntityMalformedException('Invalid Replication entity given.');
   }
 
-}
\ No newline at end of file
+}
