Fixed deletion of old triggers