fix bad search-and-replace