diff --git a/tutorials/hist/fillrandom.py b/tutorials/hist/fillrandom.py
index 61ae2d00d0834029275182f545571a8a72e6dbf5..d5eb3f6f38764f14400ec7850aeb28df892bea96 100644
--- a/tutorials/hist/fillrandom.py
+++ b/tutorials/hist/fillrandom.py
@@ -41,7 +41,7 @@ h1f.FillRandom("sqroot",10000)
 h1f.Draw()
 c1.Update()
 
-ROOT.TFile ("fillrandom.root","RECREATE")
+f = ROOT.TFile("fillrandom.root","RECREATE")
 form1.Write()
 sqroot.Write()
 h1f.Write()