Fixed typo.
Inject debug event dispatcher for dev env.