fixed routes.js bug