fix bad search/replace