(fix) bug fix in app.js