Fixed an event dispatcher issue.