Properly set the eventDispatcher

currently the eventDispatcher always got set to Null if
you don't provide your own eventDispatcher.