fix wrong logic in event.go