修正search/replace的bug