fix event.which bug