fix serialization problem