updated selection bugfix