fix bug in dicom introduced in prev commit