fix bug trigger