Bugfix: the toggling now really toggles the item state and not only the icon.