correction serialization perf and double serialization bug