Fixed SSL errors