Fix bug with copy_extension (prevents crl issue)