fix usage of vtkSmartPointer