Better way to fix the bug about highlighted disabled menuItem