diff --git a/Kwf/Controller/Action/Component/PagesController.php b/Kwf/Controller/Action/Component/PagesController.php
index <HASH>..<HASH> 100644
--- a/Kwf/Controller/Action/Component/PagesController.php
+++ b/Kwf/Controller/Action/Component/PagesController.php
@@ -258,7 +258,7 @@ class Kwf_Controller_Action_Component_PagesController extends Kwf_Controller_Act
                 $component = $root->getComponentById($oldRow->id, array('ignoreVisible' => true));
                 while ($component) {
                     if (Kwc_Abstract::getFlag($component->componentClass, 'hasHome')) {
-                        if ($component == $homeComponent) {
+                        if ($component === $homeComponent) {
                             $oldId = $oldRow->id;
                             $oldVisible = $oldRow->visible;
                             if (!$this->_hasPermissions($oldRow, 'makeHome')) {
Check if components are equal with object compare

Else it's running into infinite loop