Code fix of FileManager.