fix probleam in Factory::getRouter();