fixed weird https bug