Added a fix when file list is not defined