Fixed directory search errors