diff --git a/include/hpp/manipulation/path-planner/states-path-finder.hh b/include/hpp/manipulation/path-planner/states-path-finder.hh
index bff6a6d251945a75e77f80d46b7a6b79ff321f1b..5184e0cabe6c4162cfffec172d6ba03eac93f2a9 100644
--- a/include/hpp/manipulation/path-planner/states-path-finder.hh
+++ b/include/hpp/manipulation/path-planner/states-path-finder.hh
@@ -31,6 +31,7 @@
 #include <hpp/manipulation/config.hh>
 #include <hpp/manipulation/fwd.hh>
 #include <hpp/manipulation/problem.hh>
+#include <unordered_map>
 
 namespace hpp {
 namespace manipulation {
diff --git a/src/path-planner/states-path-finder.cc b/src/path-planner/states-path-finder.cc
index 343f48525f1d8b4b7a99bcf7c0adde980e99b037..43021f3d3391ea376cf29b64c1e24b97ccb5e3fe 100644
--- a/src/path-planner/states-path-finder.cc
+++ b/src/path-planner/states-path-finder.cc
@@ -17,7 +17,6 @@
 // received a copy of the GNU Lesser General Public License along with
 // hpp-manipulation. If not, see <http://www.gnu.org/licenses/>.
 
-#include <algorithm>
 #include <hpp/constraints/affine-function.hh>
 #include <hpp/constraints/explicit.hh>
 #include <hpp/constraints/locked-joint.hh>
@@ -44,15 +43,12 @@
 #include <hpp/util/debug.hh>
 #include <hpp/util/exception-factory.hh>
 #include <hpp/util/timer.hh>
-#include <iomanip>
-#include <map>
 #include <pinocchio/fwd.hpp>
 #include <pinocchio/multibody/model.hpp>
-#include <queue>
-#include <ranges>
-#include <stack>
+#include <algorithm>
+#include <iomanip>
+#include <map>
 #include <typeinfo>
-#include <unordered_map>
 #include <vector>
 
 namespace hpp {