Automatic definition of EVENT-MASK overridden with manual definition