Fixed several bugs in child and root routers