fixed error when event name was 'add'