Fix bug where a single selected item could not be deselected