Fix record vtk6

Fixed compatibility problem between vtk5 and 6.