Fix single replace triggering replace all