Correction of a bug for event. (Check wasn't performed at compile time)