Correct crashing bug in ITK basic filters

Just smart pointing again seems to solve the problem