Error converting Nii to Nifti pairs

Hello,

I am new to REST and I've trying to convert nifti 4d to nifti pairs. I have SPM12, Matlab R12b and REST v1.7 but the following error appears on Matlab. I have double-checked my addpaths to SPM, restarted Matlab and ran 'rest_Fix_Read_Write_Error' and nothing seems to work.

Error using rest_Fix_Read_Write_Error (line 64)