Fixed note selection bug