router.js bug resolved