fixed bugs with creation and events.