https flags reset to true