router: fix variable name bug(s)