fixed rightclick bug