Fix so that this.flatMidpoint_ is reset on recalculation