diff --git a/Makefile b/Makefile
index a0c6b84f72cd5d7aed40024ef07ad36cc9792fe3..b8f15f89487375a25a16377be0a98458492e39be 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 PROJECT = yangson
-VERSION = 1.3.12
+VERSION = 1.3.13
 .PHONY = tags deps install-deps test
 
 tags:
diff --git a/yangson/exceptions.py b/yangson/exceptions.py
index 3f4d7685bd6a16d67a4fc960cf0e775494d1b3d0..107d63d56672ceb98aaf84a54f4b73d1c2d10045 100644
--- a/yangson/exceptions.py
+++ b/yangson/exceptions.py
@@ -92,7 +92,7 @@ class InstanceException(YangsonException):
 
     def __init__(self, path: JSONPointer, message: str):
         self.path = path
-        self.message = detail
+        self.message = message
 
     def __str__(self):
         return "[{}] {}".format(self.path, self.message)