Fix to ssl issue