fixed problem where menus had no names. also fixed NPE.