Fixed bug for unverified ssl certs