Fixed functionality for vtk6.