apps.js fix