fix search/replace problem