diff --git a/python/history.py b/python/history.py
index a2857649e34c61a5874a8d43b7c162f6ee78ae42..e28cd9d6a2d86be42dd646f20606a024a67f9d68 100644
--- a/python/history.py
+++ b/python/history.py
@@ -25,7 +25,7 @@ class History:
         print "robot.setVelocity(",self.qdot[t],")"
         print "T0 = ",t
         print "robot.state.time = T0"
-        print "[ t.feature.position.recompute(T0) for t in taskrh,tasklh]"
+        print "[ t.feature.position.recompute(T0) for t in refreshTaskList]"
         print "attime.fastForward(T0)"
     def dumpToOpenHRP(self,baseName = "dyninv",sample = 1):
         filePos = open(baseName+'.pos','w')