trying to fix the bug that menu will hangs if we right click on desktop for more than 3 times