fix right-click bug