Fix right-click bug