fixed ssl issue