Don't use the selected item as the parent when it's collapsed