fixed missing keys on aggregation schema