Fixed a API SSL related bug.