diff --git a/src/sot_to_ros.hh b/src/sot_to_ros.hh
index 46bdf4c53380fdcd78af82d9f9bd189b2031095c..66d105821bf3a37baa04ab65377e8f045d02b96c 100644
--- a/src/sot_to_ros.hh
+++ b/src/sot_to_ros.hh
@@ -194,7 +194,7 @@ namespace dynamicgraph
 
     static void setDefault(sot_t& s)
     {
-      s.resize(0,0);
+      s.resize(0);
     }
   };