fix bug in Event