fixed bug in server.js