fix link directory search