Fix aggregates trigger definition.