fix bug in event-submission form.