diff --git a/source/RobotAPI/libraries/armem/server/ComponentPlugin.cpp b/source/RobotAPI/libraries/armem/server/ComponentPlugin.cpp
index 86b1d93ef683c19bf169a6fb447673eef656472e..18a24d77f82baf4f07879caeb21bb52b308fdac7 100644
--- a/source/RobotAPI/libraries/armem/server/ComponentPlugin.cpp
+++ b/source/RobotAPI/libraries/armem/server/ComponentPlugin.cpp
@@ -114,10 +114,10 @@ namespace armarx::armem::server
     ComponentPluginUser::~ComponentPluginUser() = default;
 
     // Set the name of a memory
-    void ComponentPluginUser::setMemoryName(const std::string& name)
+    void ComponentPluginUser::setMemoryName(const std::string& memoryName)
     {
-        workingMemory.name() = name;
-        longtermMemoryManager.setName(name);
+        workingMemory.name() = memoryName;
+        longtermMemoryManager.setName(memoryName);
     }
 
 
diff --git a/source/RobotAPI/libraries/armem/server/ComponentPlugin.h b/source/RobotAPI/libraries/armem/server/ComponentPlugin.h
index 35a03e7b0a3ddd4f8aafebadbbd60474dc613c8e..f55bfc6c024922f10b84d76a52b21135db58e928 100644
--- a/source/RobotAPI/libraries/armem/server/ComponentPlugin.h
+++ b/source/RobotAPI/libraries/armem/server/ComponentPlugin.h
@@ -76,7 +76,7 @@ namespace armarx::armem::server
         virtual ~ComponentPluginUser() override;
 
         /// Set the name of the wm and the ltm (if enabled)
-        void setMemoryName(const std::string&);
+        void setMemoryName(const std::string& memoryName);
 
 
         // WritingInterface interface