fix no public_id for copy