routes.js bugfix #1