Negative number aggregation return wrong results