bugfix: deselection artificats and crash fixed