Fixed small bugs in aggregated.