fix bug on trigger editing