fixes Router.js