Reducer filters files correctly