diff --git a/crocoddyl/robots.py b/crocoddyl/robots.py
index d2a4234da8693340dffea860af8927c4141dee6e..590d515f9605512e2bc9eb8aed266b2f3ba8b388 100644
--- a/crocoddyl/robots.py
+++ b/crocoddyl/robots.py
@@ -100,7 +100,7 @@ def loadTalosLegs(modelPath='/opt/openrobots/share'):
 
 
     # Load SRDF file
-    robot.q0=np.matrix(np.resize(robot.q0, robot.model.nv)).T
+    robot.q0=np.matrix(np.resize(robot.q0, robot.model.nq)).T
     readParamsFromSrdf(robot, modelPath+SRDF_SUBPATH, False)
 
     assert((m2.armature[:6]==0.).all())