capsule serialization fix