fixed bug in routes.js