fix bug in app.js