Bugfix: set selected state on unchecked