Correct error on event creation