fix trigger execution