fixes to route manager.
Bug fixes.