Fixed the add method on HierarchicalMenuModel.