Fixed small bug in aggregator.py