Fix file list creation