routes.js bugfix #2