event constructor fix