Fixed aggregation in pb_teim view