bugfix - fixed swap of trigger codes