triangle selection bugfix