bug fix on ssl