Fixed bug in robot.