Fix file filtering conditional