Some https fixes