fix bug into each app.js