If ever I am going to edit any region with pedalling, I recommend you convert to real lengths first. (Functions>Note Events>Sustain pedal to Note length)
Pedalling is of course useful for live performances when you are a real pianist, but once you are editing in MIDI, it is your enemy.