diff --git a/src/dynamic-command.h b/src/dynamic-command.h
index 1b39d28c4326f72e539edbbe93b17befc4287249..6384f1f6bb9b80848c5d1faaef851a6889c70102 100644
--- a/src/dynamic-command.h
+++ b/src/dynamic-command.h
@@ -129,7 +129,14 @@ namespace dynamicgraph { namespace sot {
 	std::string property = values[0].value();
 	std::string value;
 
-	robot.m_HDR->getProperty(property, value);
+	if(! robot.m_HDR->getProperty(property, value) )
+	  {
+	    if( property == "vrmlDirectory" ) value = robot.vrmlDirectory;
+	    else if( property == "xmlSpecificityFile" ) value = robot.xmlSpecificityFile;
+	    else if( property == "xmlRankFile" ) value = robot.xmlRankFile;
+	    else if( property == "vrmlMainFile" ) value = robot.vrmlMainFile;
+	  }
+
 	return Value(value);
       }
     }; // class GetProperty