fix codestyle
events: add switching eventInstantiated flag