diff --git a/plugins/sigma.parsers.json/sigma.parsers.json.js b/plugins/sigma.parsers.json/sigma.parsers.json.js
index <HASH>..<HASH> 100644
--- a/plugins/sigma.parsers.json/sigma.parsers.json.js
+++ b/plugins/sigma.parsers.json/sigma.parsers.json.js
@@ -74,8 +74,8 @@
 
         // ...or it's finally the callback:
         } else if (typeof sig === 'function') {
-          sig = null;
           callback = sig;
+          sig = null;
         }
 
         // Call the callback if specified:
Minor fix in sigma.parsers.json

When called with only a path and a callback, the callback was actually not called at all. Now it is.