fix sanity check for https element