diff --git a/www/nativescript-webview-interface.js b/www/nativescript-webview-interface.js
index <HASH>..<HASH> 100644
--- a/www/nativescript-webview-interface.js
+++ b/www/nativescript-webview-interface.js
@@ -74,6 +74,7 @@ var NSWebViewinterface = (function () {
             var fn = window;
             for(var i =0; i < arrFnPath.length; i++){
                 if(!fn[arrFnPath[i]]){
+                    fn = null;
                     break;
                 }
                 fn = fn[arrFnPath[i]];
Bugfix: If function to execute by callJSFunction not found, setting function to null, instead of window.