fix event publishing