fix rightclick bug