Fixup replace command (but still broken :'()