fix cardinality aggregator serde