I used to have a similar problem but mine was the start of a measure. I found out it was the previous midi segment doing it. When I looked at the midi in Edit in the BBM i could see a thin red line at the very end. I fixed it by adding a bar and then removing it and saved. It was like a little section of silence that killed whatever midi fell on the first beat of the next segment of midi.