Fixes directory search