Fixed ssl issue