partial fix to HTTPS issue.