Fix some ROS-specific bugs.