Fixed bug with openssl