fix ssl issue