fix robot_controlled_switching to work