Fixed exception on creating new events.