fix ssl exception