fix contextmenu bug