fix event problems, no events in init, dinit