Avoid referencing broken replace function