Import MRI: Error in in_mri_dicom_text_to_dict.m

I am using the "import MRI" function on my subject's anatomy folder to read in intra-op CT (DICOM format). I'm getting the error below:

Error in in_mri_dicom_spm.m

Line 56: Undefined function 'spm_dicom_text_to_dict' for input arguments of type 'char'

Call stack:

in_mri_dicom_spm.m at 56
import_mri.m at 111
bst_call.m at 28
tree_callbacks.m>@(h,ev)bst_call(@import_mri,iSubject,[],[],1) at 563

Wondering if this is a path issue or a bug?

I solved it by uninstalling and reinstalling SPM.