tree item bug fix: check parent even if the current mode of the item didn't change