Fix UIContextFactory.getSelection()