fixed ssl error