a quick fix for dirs filtering