You might find there's a permanent fix for sticky, jumbled or missed MIDI notes.
In preferences there's a setting for the size of the MIDI buffer, which is how far ahead Sonar looks when playing back MIDI. Unless you've previously adjusted it it will be set to 250. Try increasing it to 500 or if that doesn't help try 750. 250 seems to cause all kinds of problems even on very fast PCs.