fixing https bug