Fixed an initialize bug in router.