Problem when change velocity of midi notes

When I trie to modify the velocity of midi note(s), the note(s) starts playing, as from the moment I click on the velocity bar of the note(s),
(so far normal)
But when I release the mouse click, the note(s) keep on playing. There is no way to stop them from playing.
I have to save & close the project and then re-open