Fix directory filters so that folder filter sticks