Fix issue with replace.