Fixed the switch instanciate in dispatcher.pm