Fix to directory filter.