work around bug in gpg