diff --git a/utils/pinocchio_read_model.cpp b/utils/pinocchio_read_model.cpp
index e64db62d6689393b2c2905a2356bd47998bda017..07bf54a701afbbb1d136a13c39253f2f35a3ec0e 100644
--- a/utils/pinocchio_read_model.cpp
+++ b/utils/pinocchio_read_model.cpp
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
   {
     case se3::URDF:
 #ifdef WITH_URDFDOM
-      model = se3::urdf::buildModel(filename, verbose);
+      se3::urdf::buildModel(filename,model,verbose);
 #else
       std::cerr << "It seems that the URDFDOM module has not been found during the Cmake process." << std::endl;
 #endif