fix event wait