Fixed bug in DispatcherProvider