fixed getDispatcher() method