fixed deselection problem