Partially fixes issue #124
Merge pull request #252 from jpapon/vtk_pointer_fix

Partially fixes issue #124