Minor bugfix regarding the creation of vtk files