fix event.target bug