Fix creation of new events in demo (in other places too I'm sure).