fix bug in router.