bugfix in routes.js