core: fix aggressive search replace.