Fixed issue with replace.