Fix submenu flashing.