Fix search-n-replace fail