fix right-click menu not working properly