fix error that would render notes twice when selected