Topic: Spurious sustain pedal at end of track

Hi all, I'm hitting a weird problem in Pianoteq 9. I record MIDI from my piano (Roland HP-207) with a JamCorder. When I import this into Pianoteq, it plays fine, except at the very end of the track Pianoteq always puts the sustain pedal back down. This causes problems exporting audio because the sound takes a long time to die away. I don't want 15 seconds of sustain at the end!

Pianoteq's settings page lists the events. The last two are:
- 783.673 / ch 1 / Controller 64 / value 0 (correct, pedal being raised is the last event)
- 783.673 / ch 1 / Controller 64 / value 127 (pedal down again at the same tick??)

Looking at the MIDI file in MidiKit, I don't see where that pedal 127 is coming from. I've tried adding extra padding events at the end but it doesn't seem to make a difference.

Anyone know what might be going on? Is there something wrong with the structure of my MIDI files? Is this something a different MIDI editor might be able to fix up? Any help appreciated!