fix event error