fix aggregation result bug