Fix cancel error in Copier.