fixed deserialization