fix a bug in loading nii with dimension mismatch