fixed bug with routers
Bugfixes in routers and other places. Not it works well with semanticchat