diff --git a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp
index b283571a62a925f75c097c2717cb9f93dfe8d8ac..fcf4c144bf3fd3aa9cf82779502f45a4577fb01e 100644
--- a/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp
+++ b/GraspPlanning/examples/GraspPlanner/GraspPlannerWindow.cpp
@@ -338,8 +338,9 @@ void GraspPlannerWindow::loadObject(const string& objFile)
     if (robotObject) {
         for (auto robotNode : robotObject->getRobotNodes()) {
             if (robotNode->getVisualization()) {
-                if (!object)
+                if (!object){
                     object = robotNode;
+                }
                 UI.comboBoxObject->addItem(QString::fromStdString(robotNode->getName()));
             }
         }