Fixed problem in copy command.