fixed a bug with multiple parent routers