Fixed SSL check.