fix for gpg hang