diff --git a/source/RobotAPI/components/ViewSelection/ViewSelection.cpp b/source/RobotAPI/components/ViewSelection/ViewSelection.cpp
index 3ab494165047001c86104c218febb043c2cbcc2e..79700054c9abaa3f060ac9b6d65de9766a5e7a84 100644
--- a/source/RobotAPI/components/ViewSelection/ViewSelection.cpp
+++ b/source/RobotAPI/components/ViewSelection/ViewSelection.cpp
@@ -46,10 +46,7 @@ void ViewSelection::onInitComponent()
     cameraFrameName = getProperty<std::string>("CameraFrameName").getValue();
     drawViewDirection = getProperty<bool>("VisualizeViewDirection").getValue();
 
-    std::string graphFileName = "RobotComponents/ViewSelection/graph40k.gra";
-
-    armarx::CMakePackageFinder finder("RobotComponents");
-    ArmarXDataPath::addDataPaths(finder.getDataDir());
+    std::string graphFileName = "RobotAPI/ViewSelection/graph40k.gra";
 
     if (ArmarXDataPath::getAbsolutePath(graphFileName, graphFileName))
     {
@@ -81,6 +78,7 @@ void ViewSelection::onInitComponent()
     {
         ARMARX_ERROR << "Could not find required1 graph file";
         handleExceptions();
+        return;
     }
 
     sleepingTimeBetweenViewDirectionChanges = getProperty<int>("SleepingTimeBetweenViewDirectionChanges").getValue();