Sustain pedal keeps on?

I am using some sustain pedal in one of the flows, but noticed that it is still on in all the other flows. How can I disable it?

If you’re using one of Dorico’s pedal lines, it will stop playing as soon as the line ends. Perhaps you have some stray MIDI controller data for controller 64 in Play mode?

It’s a Dorico pedal line, yes. I don’t see anything unusual in Play mode.When I delete the last pedal line in the flow, the next flow sounds without sustain.

edit: After editing the last bar (I inserted an extra bar before the last), the sustain now stops correctly.