fixing a bad search/replace