diff --git a/GDSerializer.csproj b/GDSerializer.csproj
index 0c2133a..2128b12 100644
--- a/GDSerializer.csproj
+++ b/GDSerializer.csproj
@@ -8,7 +8,7 @@
true
true
- 2.0.1
+ 2.0.2
GDSerializer
Carnagion
An XML (de)serialization framework for Godot's C# API.
diff --git a/README.md b/README.md
index de13a43..9976fa7 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ It supports (de)serialization of almost any C# type including collections and ma
**GDSerializer** is available as a [NuGet package](https://www.nuget.org/packages/GDSerializer/), which can be installed either through an IDE or by manually including the following lines in a Godot project's `.csproj` file:
```xml
-
+
```
Its dependencies may need to be installed as well, in a similar fashion.
diff --git a/Serialization/Serializer.cs b/Serialization/Serializer.cs
index bac733f..77d4666 100644
--- a/Serialization/Serializer.cs
+++ b/Serialization/Serializer.cs
@@ -345,7 +345,7 @@ public XmlNode Serialize(object instance, Type? type = null)
.Where(pair => pair.Item2 is not null && pair.Item2.Serializable)
.Select(pair => pair.member)
.ToArray();
- if (toDeserialize.Any() && !deserialized.Select(pair => pair.Item2).ContainsAll(toDeserialize))
+ if (toDeserialize.Any() && !toDeserialize.All(deserialized.Select(pair => pair.Item2).Contains))
{
throw new SerializationException(node, $"One or more mandatory properties or fields of {type.GetDisplayName()} were not deserialized");
}