Fixed minor bug in aggregator.py