fix key error on app.js