Fixed error in circuit.copy()