Once you realised why it happened and how to stop it in the future, surely the quickest way to fix it would be to re-track the part? That's what I would do anyway, depending on the length of the part, how many notes are played/effected by it, etc. If it was a bit of a fill for 30 seconds or so...