Removed unneccesary unpack=TRUE clause in aggregate when group by attribute selected