fix subdirectories search problem