diff --git a/src/problem/problem.cpp b/src/problem/problem.cpp
index 12ec2c4f0b14c5800be2fa617902c466bca7e6cf..6fe2afb34530e550d8a361e56bcaae2c07938349 100644
--- a/src/problem/problem.cpp
+++ b/src/problem/problem.cpp
@@ -101,6 +101,9 @@ ProblemPtr Problem::autoSetup(ParamsServer &_server)
     // Load plugins
     auto loaders = std::vector<std::shared_ptr<Loader>>();
     std::string plugins_path = _WOLF_LIB_DIR;
+    if (plugins_path.back() != '/'){
+        plugins_path += '/';  // only works for UNIX systems
+    }
     /*try
     {
         plugins_path = _server.getParam<std::string>("plugins_path");