bug fix: unable to deselect an item