Error in functional connectivity analysis when using DPARSF or REST

Hello, Dear DPARSF team

I ran into some problems when I try to compute functional connectivity when using DPARSF. It gave me error message as following. I tried REST to do FC analysis and got same error message. And it is apparently not due to different preprocessing because I used DPARSF to do the preprocessing. Would you please help me solve the problem? Thanks a lot for your help in advance.

The wired thing is when I define ROI by using /DPARSF_V1.0_100510/Templates/BrainMask.img, CsfMask.img and WhiteMask.img. DPARSF can do The FC analysis successfully. But of course, the results are meaningless for us because they are not real ROI. Can anyone please tell me how to make some useful ROI mask. Thanks a lot.

Computing functional connectivity with:    "/Connectivity/FunImgNormalizedSmoothedDetrendedFilteredCovremoved/Sub_02"
     Read 3D EPI functional images: "/Connectivity/FunImgNormalizedSmoothedDetrendedFilteredCovremoved/Sub_02"...............................

     ROI time course retrieving through "ROI Center(mm)=(51, 5, 49); Radius=3.00 mm.".??? Attempted to access mask(9,40.3333,33.6667); index must be a positive integer or logical.

Error in ==> rest_SphereROI>Ball2Mask at 265
            mask(x, y, z) =1;

Error in ==> rest_SphereROI at 110
    theMask =Ball2Mask(ABrainSize, AVoxelSize, AROICenter, AROIRadius, Header.Origin);

Error in ==> fc at 126
            maskROI =rest_SphereROI( 'BallDefinition2Mask' , AROIDef, BrainSize, VoxelSize, Header);

Error in ==> DPARSF_run at 1023
            fc(       [AutoDataProcessParameter.DataProcessDir,filesep,FunImgDir,filesep,AutoDataProcessParameter.SubjectID{i}], ...

Error in ==> DPARSF>pushbuttonRun_Callback at 935
    [Error]=DPARSF_run(handles.Cfg);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> DPARSF at 39
    gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback

Hi!
There seems something wrong with your data.
Could you upload a normalized file here? such as x:xxx\FunImgNormalized\Sub001\xxxxxx.img  (and .hdr)