Fixed a performence loss when the robot is hidden