dirs filtering fixed