Fix ssl connection problem