Fix bad search/replace