fix some routers bugs