EventDispatcher example fix