fixed errors on routers