fix problem that searching from dired-mode