Fix the build of menu using MenuSpec (last items not added)