[Freesurfer] fixing segmentation errors