fixed crash in cmd_set (use default trigger instead of NULL if no trigger is set)