fix context menu bug