Fix bugs in EventConfig