fix set_value_and_trigger_evts