aggregator: fix NPE