error in myEvent