diff --git a/tbox/utils.py b/tbox/utils.py
index a15d3073fca817b119b7b2bdd9edc73e5c18ff77..bcc21dbc28fcad842b306b0c1ec7124f400aeaf7 100644
--- a/tbox/utils.py
+++ b/tbox/utils.py
@@ -80,10 +80,11 @@ def read(filename):
     """Read from file and store in data array
     Adrien Croavto
     """
+    import io
     import numpy as np
     # read file
-    fl = file(filename)
-    label = fl.next().split(',')
+    fl = io.open(filename, 'r')
+    label = fl.readline().split(',')
     fl.close()
     data = np.loadtxt(filename, delimiter=',', skiprows=1)
     return data
diff --git a/tboxVtk/cutter.py b/tboxVtk/cutter.py
index a2ac356a0a7cffda8ea1ef066f7240a1bfb3bc15..a9e30b3373e854c3e70b148573f2fe4f7f4b73ba 100644
--- a/tboxVtk/cutter.py
+++ b/tboxVtk/cutter.py
@@ -48,7 +48,7 @@ class Cutter(object):
         plane.SetOrigin(cutO[0], cutO[1], cutO[2])
         plane.SetNormal(cutN[0], cutN[1], cutN[2])
         # cut the threshold and get data
-        cutter = vtk.vtkFiltersCorePython.vtkCutter()
+        cutter = vtk.vtkCutter()
         cutter.SetCutFunction(plane)
         cutter.SetInputConnection(thresh.GetOutputPort())
         cutter.Update()
diff --git a/tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py b/tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
index 8e70d460664681f034df196932c63fa4d67bf525..652e3e14d6a9b5497fa88b65df29dbcab2f609cf 100644
--- a/tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
+++ b/tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 # Copyright 2020 University of Liège
 # 
 # Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/waves/viewer.py b/waves/viewer.py
index 919647b161202048df2c70298ddc702bedca7281..38f1cd9b07c5a7668b637e2fe6a5f6f11bb76dc1 100644
--- a/waves/viewer.py
+++ b/waves/viewer.py
@@ -332,7 +332,7 @@ class Mesh(object):
         self.mapper = vtk.vtkDataSetMapper()
         #self.mapper.SetInputConnection(self.producer.GetOutputPort())
         self.mapper.SetInputData(ugrid)
-        self.mapper.ImmediateModeRenderingOff()
+        #self.mapper.ImmediateModeRenderingOff()
         self.mapper.SetResolveCoincidentTopologyToPolygonOffset()
         self.mapper.ScalarVisibilityOff()
 
@@ -432,7 +432,7 @@ class ScalarBar(object):
 class Grid(object):
     def __init__(self, ugrid):
         self.mapper = vtk.vtkDataSetMapper()
-        self.mapper.ImmediateModeRenderingOff()
+        #self.mapper.ImmediateModeRenderingOff()
         self.mapper.SetResolveCoincidentTopologyToPolygonOffset()
         self.mapper.ScalarVisibilityOff()
         self.mapper.SetInputData(ugrid)