fix bug in event dispatcher