Whenever there was a proper invocation of events, the compiler assumed that all the subsequent invocations were proper.