Fixed copy_master_public_key()