Aggregation problem with $limit

If we use limit with aggregation then first Sum,Avg,Min,Max are calculated from match result and then limits are placed on that only one value result.