Fix the filtering of files