fix find-mode bug