fix event regeneration bug