fixed apps.js