selection bugfix