fix attribute metadata aggregation