fixes a reference in router.js