diff --git a/KKdMainLib/IO/JSON.cs b/KKdMainLib/IO/JSON.cs
index 86cea53..27b8844 100644
--- a/KKdMainLib/IO/JSON.cs
+++ b/KKdMainLib/IO/JSON.cs
@@ -46,9 +46,9 @@ namespace KKdMainLib.IO
{
buf.first = 1;
buf.data[0] = buf.data[buf.data.Length - 1];
- byte[] temp = _IO.RBy(buf.data.Length - 1);
- buf.length = temp.Length;
- Array.Copy(temp, 0, buf.data, 1, temp.Length);
+ byte[] temp = new byte[buf.data.Length];
+ buf.length = _IO.RBy(buf.data.Length - 1, temp);
+ Array.Copy(temp, 0, buf.data, 1, buf.length);
}
if (buf.length < 1)
diff --git a/KKdMainLib/KKdMainLib.csproj b/KKdMainLib/KKdMainLib.csproj
index 237c9b3..8f69143 100644
--- a/KKdMainLib/KKdMainLib.csproj
+++ b/KKdMainLib/KKdMainLib.csproj
@@ -6,12 +6,12 @@