fixed problem where directories are not shown when filtering files