Bugfix: I forgot the case when the crossing breakpoint is the last breakpoint of the envelope.