fix serialization assert