Fixed bug while dicom exporting multiple scans.