diff --git a/pynetworktables2js/js/networktables.js b/pynetworktables2js/js/networktables.js
index <HASH>..<HASH> 100644
--- a/pynetworktables2js/js/networktables.js
+++ b/pynetworktables2js/js/networktables.js
@@ -546,7 +546,7 @@ const NetworkTables = new function () {
 		globalListeners.add(f);
 		
 		if (immediateNotify === true) {
-			ntCache.forEach(function(k, v){
+			ntCache.forEach(function(v, k){
 				f(k, v, true);
 			});
 		}
Fixed bug where keys and values were switched in global listener