fixed deserialization for aggregator and publisher