Fix the select event in ContextMenu.