fix get_operational_state bug