Fixed a typo bug in SelectionManager getSelection.