fix bad search-replace