fix right click menu bug