Patch menu script to disable submenu.