I tried the command on an AFNI file, and it worked fine. So I am suspecting the problem might have something to do with the NIfTI file you have. Not sure what's going on, but you can check the limitations here:
http://nifti.nimh.nih.gov/nifti-1/support/AFNIandNIfTI1
Gang