Fixed bugs with aggregates when more rows than bulk row count.