diff --git a/src/ZoneTree/Core/ZoneTreeLoader.cs b/src/ZoneTree/Core/ZoneTreeLoader.cs
index 0704129..fc0a57c 100644
--- a/src/ZoneTree/Core/ZoneTreeLoader.cs
+++ b/src/ZoneTree/Core/ZoneTreeLoader.cs
@@ -46,7 +46,7 @@ private void ValidateZoneTreeMeta()
ZoneTreeMeta.KeyType,
typeof(TKey).FullName);
- if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TKey).FullName))
+ if (!string.Equals(ZoneTreeMeta.ValueType, typeof(TValue).FullName))
throw new TreeValueTypeMismatchException(
ZoneTreeMeta.ValueType,
typeof(TValue).FullName);
diff --git a/src/ZoneTree/Directory.Build.props b/src/ZoneTree/Directory.Build.props
index f828f08..f868ffc 100644
--- a/src/ZoneTree/Directory.Build.props
+++ b/src/ZoneTree/Directory.Build.props
@@ -5,8 +5,8 @@