Fix ssl connection error