Corrected aggregation bug

- Corrected NaN issue of the division 0/0 in the aggregator class