[Aggregate_core] Fix error hanfling