fix for copy public key