diff --git a/src/device.cc b/src/device.cc
index 9d203f6fc57f2900cd920475218d8aba7d711293..2cb2d7495e1b6d0250fc17cd38ba5d763c6c483d 100644
--- a/src/device.cc
+++ b/src/device.cc
@@ -86,6 +86,8 @@ void Device::setRobotRootPosition(const std::string& rn, const Transform3f& t) {
     }
   }
   invalidate();
+  // Update the pool of device data.
+  numberDeviceData(numberDeviceData());
 }
 
 std::vector<std::string> Device::robotNames() const {