Fixed deserialization bug