fix event context