tempDICOMDatabase crashes slicer

I’ve been messing around trying to debug and I was able to narrow it down to this.
Using

DICOMUtils.importDicom(dicomDataDir, slicer.dicomDatabase)

on startup work just fine, but the moment I call

DICOMUtils.loadPatientByUID(slicer.dicomDatabase.patients()[0])

slicer crashes.
I will try to see if using

scalarVolumeReader = DICOMScalarVolumePlugin.DICOMScalarVolumePluginClass()

method from Loading DICOM files with python script for Mac - #4 by epearlstone
would provide a viable solution

~Georgi