src: fixed bug with unselection