Fix menu creation

When creating menus, type of menu wasn't saved.