fixed REPL's :cp command