fixing deserialize