fix, allow using menu with single-level menu.