bugfix on cancelSelection() when called a selection that isn't in selections