fix the bug in obtain file list