Filter file clear files correctly.