fix init event