Fix directories filter