Fixed right-click event issue