Fix lookup of event dispatcher.
Code style.