fixed HierarchicalSelector for pages.parent==None