Fix for OpenSSL bug