diff --git a/bindings/pyroot/JupyROOT/kernel/rootkernel.py b/bindings/pyroot/JupyROOT/kernel/rootkernel.py
index 3a05f8c6d63b6374bedd0c00d3581c96d5772ef2..9e6a5683048a6d588bd206cefb45b6cff925c7db 100644
--- a/bindings/pyroot/JupyROOT/kernel/rootkernel.py
+++ b/bindings/pyroot/JupyROOT/kernel/rootkernel.py
@@ -105,7 +105,7 @@ class ROOTKernel(MetaKernel):
 
 
         except KeyboardInterrupt:
-            self.interpreter.gROOT.SetInterrupt()
+            ROOT.gROOT.SetInterrupt()
             status = 'interrupted'
             self.ioHandler.EndCapture()
         if not silent: