deserialization bug fix