some small fixes to hierarchical menus