fixed defect with event creation
fixed error from event creation