workaround to avoid a bug in gpgme