Fix an X error related to menus.