fix bug in eventNames