Fix for note selection issue MAGN-277

#### Background
This fixes the following defect:

MAGN-277 Note selection is not correct.
http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-277