Fix invirt-base's handling of triggers.