deselection works properly now