fix problem with non-expanding tree-element