edit router
fix bug