diff --git a/tooling/vis/cfg-visualization.js b/tooling/vis/cfg-visualization.js
index <HASH>..<HASH> 100644
--- a/tooling/vis/cfg-visualization.js
+++ b/tooling/vis/cfg-visualization.js
@@ -40,10 +40,10 @@
             network.destroy();
         }
         
-        var visGraph = generateNodesAndEdges(controlFlowGraph);
-        network = new vis.Network(container, visGraph, visualizationOptions);
-        
-        return network;
+        setTimeout(function() {
+            var visGraph = generateNodesAndEdges(controlFlowGraph);
+            network = new vis.Network(container, visGraph, visualizationOptions);
+        }, 0);
     }
 
     function generateNodesAndEdges(cfg) {
Resolves a timing problem with destroying the visjs network graph