Load Dicom series file problems

You get the file list by calling filelist=os.listdir(path), which returns the files in some random order (how they are ordered in the file system). See this topic about how to do it correctly: