Output replace content fix