on_replace -> after_replace.