Fixed bugs in rowAgg