fixed issue with writing VTK files was called in PackPrimaryPhases and cause an error in Mavericks