fixed SSL error