fixed regression in app.js