Check thaat flat-top window is non-zero at both ends.