fixed bug in DICOM handler