diff --git a/source/RobotAPI/libraries/armem/core/wm/memory_conversions.cpp b/source/RobotAPI/libraries/armem/core/wm/memory_conversions.cpp
index 4ec906f270952b7e02af992fb77d551dd5429151..e72b21abffa5e571ffab8437d35ce6026dd1ab62 100644
--- a/source/RobotAPI/libraries/armem/core/wm/memory_conversions.cpp
+++ b/source/RobotAPI/libraries/armem/core/wm/memory_conversions.cpp
@@ -110,7 +110,7 @@ namespace armarx::armem::wm
         }
     }
 
-    void toMemory(Memory &m, armarx::armem::server::wm::Memory &structure, const std::vector<EntitySnapshot> &e)
+    void toMemory(Memory &m, const armarx::armem::server::wm::Memory &structure, const std::vector<EntitySnapshot> &e)
     {
         // create an empty working memory:
         m.clear();
diff --git a/source/RobotAPI/libraries/armem/core/wm/memory_conversions.h b/source/RobotAPI/libraries/armem/core/wm/memory_conversions.h
index 5748b499edce1e7d6b5c986fc1f30a6871195678..7ea40b5f54eb2a994eb98cd5f278ee29582ce11b 100644
--- a/source/RobotAPI/libraries/armem/core/wm/memory_conversions.h
+++ b/source/RobotAPI/libraries/armem/core/wm/memory_conversions.h
@@ -19,7 +19,7 @@ namespace armarx::armem::wm
      * @param structure the server working memory for structure information
      * @param e the vector of entity snapshots
      */
-    void toMemory(Memory& m, armarx::armem::server::wm::Memory& structure, const std::vector<EntitySnapshot>& e);
+    void toMemory(Memory& m, const armarx::armem::server::wm::Memory& structure, const std::vector<EntitySnapshot>& e);
 
     void toMemory(Memory& m, const std::vector<EntityInstance>& e);
 } // namespace armarx::armem::wm