Fixed add submenu pages bug.