fixed broken replace.