fix a search_replace bug *g*