Fixed http/https issue