Fixed an IOManager crash when folder is empty