fix TypeError: route.children is undefined