fix ssl connection