Sustain pedal on/off recorded in midi file does not work

I imported a midi exported from a piano scoring software into Cubase 12.
If you look at the sustain, you will see an overlap of on and off.

When played in this state, the sustain remains unreleased all the way through.

The following is a Midi file.
https://media-uploader.work/?mode=dl&id=2795&original=1&key=ace48cc2-e392-4c3b-99f0-186dd4d60c5b

As you can see when you play this file in a MIDI player, the sustain on/off toggle works.

Is there any way to make the sustain work the same way as MIDI without having to edit each sustain individually in the editor?

Hi,

You can select all Sustain On or Off events by the lasso selection and then move the at one in the Info Line.