Fixed not_logic and Gate trigger.