fix file list getting unnecessarily cleared