Fix for pretty major SSL related crash bug