Fixed SSL issues