fixed the file filtering