Fix for NoteOff error.