fix aggregate_core